package ydn.edu.hqu.cst.myexpeiment3;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;


public class clicklistener implements View.OnClickListener {
    private Activity act;
    private TextView text;

    public clicklistener(Activity act, TextView text){
        this.act= act;
        this.text=text;
    }
    @Override
    public void onClick(View source) {
        this.text.setText("采用了外部类绑定的监听器");
    }

}
